package com.zzyd.factory.net;

import com.zzyd.common.Common;
import com.zzyd.factory.data.market.MarketBean;
import com.zzyd.factory.model.account.Usdfs;
import com.zzyd.factory.model.account.User;

import java.util.Map;

import retrofit2.Call;
import retrofit2.http.POST;
import retrofit2.http.Part;
import retrofit2.http.Query;
import retrofit2.http.QueryMap;

/**
 * @author wjunjie
 * @version 1.0
 * @E-mail wang_junjie007@163.com
 * @company ZZYD
 * @createTime 2018/7/24 11:16
 * @类注释:
 */
public interface DataNetApi {
    /**
     * 登陆
     * @param map
     * @return
     */
    @POST(Common.CommonApi.LOGIN)
    Call<User> accountLogin(@QueryMap Map<String, String> map);

    /**
     * 登陆
     * @param content
     * @return
     */
    @POST(Common.CommonApi.Test)
    Call<Usdfs> tstres(@Query("content") String content,@Query("key") String key);

    /**
     * MM/ETH/BTC 信息
     */
    @POST(Common.CommonApi.BTC_INFO_MSG)
    Call<MarketBean> marketMsg(@Query("coinId")String coinId);
}
